// 1.引入fs文件功能
let fs = require('fs');

fs.writeFileSync('./demo/a.txt', 'i am fine');